package com.ys.entity.purchase;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCG_PurchasePaymentItem", catalog="Id")
public class TcgPurchasePaymentItem extends BaseEntity<TcgPurchasePaymentItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="PurchaseContractItemId", nameJava="purchaseContractItemId", typeDataBase="bigint")
	private Long purchaseContractItemId;
	@YsField(nameDataBase="SubPaidNum", nameJava="subPaidNum", typeDataBase="int")
	private Integer subPaidNum;
	@YsField(nameDataBase="SubThisPaidNum", nameJava="subThisPaidNum", typeDataBase="int")
	private Integer subThisPaidNum;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcgPurchasePaymentItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TcgPurchasePaymentItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getPurchaseContractItemId() {
		return purchaseContractItemId;
	}
	public TcgPurchasePaymentItem setPurchaseContractItemId(Long purchaseContractItemId) {
		this.purchaseContractItemId = purchaseContractItemId;
		return this;
	}
	public Integer getSubPaidNum() {
		return subPaidNum;
	}
	public TcgPurchasePaymentItem setSubPaidNum(Integer subPaidNum) {
		this.subPaidNum = subPaidNum;
		return this;
	}
	public Integer getSubThisPaidNum() {
		return subThisPaidNum;
	}
	public TcgPurchasePaymentItem setSubThisPaidNum(Integer subThisPaidNum) {
		this.subThisPaidNum = subThisPaidNum;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcgPurchasePaymentItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcgPurchasePaymentItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcgPurchasePaymentItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcgPurchasePaymentItem tcgPurchasePaymentItem(
		String pbid,
		Long purchaseContractItemId,
		Integer subPaidNum,
		Integer subThisPaidNum,
		Integer status
			) {
		TcgPurchasePaymentItem entity = new TcgPurchasePaymentItem();
		entity.setPbid(pbid);
		entity.setPurchaseContractItemId(purchaseContractItemId);
		entity.setSubPaidNum(subPaidNum);
		entity.setSubThisPaidNum(subThisPaidNum);
		entity.setStatus(status);
		return entity;
	}
}